// ToolbarContainerWindow.h: interface for the CToolbarOwnerWindow class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TOOLBARCONTAINERWINDOW_H__4308BF46_23BC_4AE7_83A5_1F56A724B189__INCLUDED_)
#define AFX_TOOLBARCONTAINERWINDOW_H__4308BF46_23BC_4AE7_83A5_1F56A724B189__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "resource.h"
#include "ToolbarWindow.h"

typedef CWinTraits<WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0>	CContainerWinTraits;

class CToolbarOwnerWindow : public CWindowImpl<CToolbarOwnerWindow, CWindow, CContainerWinTraits>  
{
public:
	DECLARE_WND_CLASS(L"IETOOLBAR_OWNER")

	BEGIN_MSG_MAP(CToolbarOwnerWindow)
		MESSAGE_HANDLER(WM_CREATE, OnCreate)
		CHAIN_MSG_MAP_MEMBER(m_toolbarWnd)
	END_MSG_MAP()

	CToolbarOwnerWindow();
	virtual ~CToolbarOwnerWindow();

	CToolbarWindow& GetToolbarWnd();

	LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	
protected:
	VOID ReleaseResources();

private:
	CToolbarWindow	m_toolbarWnd;
};

#endif // !defined(AFX_TOOLBARCONTAINERWINDOW_H__4308BF46_23BC_4AE7_83A5_1F56A724B189__INCLUDED_)
